mirror of https://gitee.com/bigwinds/arangodb
added some comments
This commit is contained in:
parent
21a89c9270
commit
b2748eb1e5
|
@ -32,7 +32,7 @@ using namespace arangodb::application_features;
|
|||
|
||||
namespace {
|
||||
// number of leases currently handed out
|
||||
// the two highest bit of the value has a special meaning
|
||||
// the highest bit of the value has a special meaning
|
||||
// and must be masked out.
|
||||
// if it is set, then a new lease can be acquired.
|
||||
// if not set, then no new lease can be acquired.
|
||||
|
@ -107,7 +107,7 @@ void AqlFeature::stop() {
|
|||
<< " registered traverser engines to terminate and for " << n
|
||||
<< " registered queries to terminate and for " << m
|
||||
<< " feature leases to be released";
|
||||
std::this_thread::sleep_for(std::chrono::microseconds(500000));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(250));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -74,6 +74,12 @@ transaction::Context::Context(TRI_vocbase_t& vocbase)
|
|||
_dumpOptions(arangodb::velocypack::Options::Defaults),
|
||||
_transaction{ 0, false },
|
||||
_ownsResolver(false) {
|
||||
/// dump options contain have the escapeUnicode attribute set to true
|
||||
/// this allows dumping of string values as plain 7-bit ASCII values.
|
||||
/// for example, the string "möter" will be dumped as "m\u00F6ter".
|
||||
/// this allows faster JSON parsing in some client implementations,
|
||||
/// which speculate on ASCII strings first and only fall back to slower
|
||||
/// multibyte strings on first actual occurrence of a multibyte character.
|
||||
_dumpOptions.escapeUnicode = true;
|
||||
}
|
||||
|
||||
|
@ -171,6 +177,12 @@ VPackOptions* transaction::Context::getVPackOptionsForDump() {
|
|||
orderCustomTypeHandler();
|
||||
}
|
||||
|
||||
/// dump options have the escapeUnicode attribute set to true.
|
||||
/// this allows dumping of string values as plain 7-bit ASCII values.
|
||||
/// for example, the string "möter" will be dumped as "m\u00F6ter".
|
||||
/// this allows faster JSON parsing in some client implementations,
|
||||
/// which speculate on ASCII strings first and only fall back to slower
|
||||
/// multibyte strings on first actual occurrence of a multibyte character.
|
||||
return &_dumpOptions;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue