mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of https://github.com/arangodb/arangodb into devel
# Conflicts: # arangod/RocksDBEngine/RocksDBReplicationTailing.cpp
This commit is contained in:
commit
97681ab32a
|
@ -183,13 +183,13 @@ class WALParser : public rocksdb::WriteBatch::Handler {
|
|||
}
|
||||
case RocksDBLogType::SingleRemove: {
|
||||
_removeDocumentKey = RocksDBLogValue::documentKey(blob).toString();
|
||||
// intentionall fall through
|
||||
// intentional fall through
|
||||
}
|
||||
case RocksDBLogType::SinglePut: {
|
||||
_singleOpTransaction = true;
|
||||
_currentDbId = RocksDBLogValue::databaseId(blob);
|
||||
_currentCollectionId = RocksDBLogValue::collectionId(blob);
|
||||
_currentTrxId = RocksDBLogValue::collectionId(blob);
|
||||
_currentTrxId = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -302,9 +302,9 @@ class WALParser : public rocksdb::WriteBatch::Handler {
|
|||
_builder.add("database", VPackValue(std::to_string(_currentDbId)));
|
||||
_builder.add("cid", VPackValue(std::to_string(_currentCollectionId)));
|
||||
if (_singleOpTransaction) { // single op is defined to 0
|
||||
_builder.add("tid", VPackValue(0));
|
||||
_builder.add("tid", VPackValue("0"));
|
||||
} else {
|
||||
_builder.add("tid", VPackValue(_currentTrxId));
|
||||
_builder.add("tid", VPackValue(std::to_string(_currentTrxId)));
|
||||
}
|
||||
_builder.add("data", VPackValue(VPackValueType::Object));
|
||||
_builder.add(StaticStrings::KeyString, VPackValue(_removeDocumentKey));
|
||||
|
@ -349,6 +349,7 @@ class WALParser : public rocksdb::WriteBatch::Handler {
|
|||
_builder.close();
|
||||
}
|
||||
_seenBeginTransaction = false;
|
||||
_singleOpTransaction = false;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue