1
0
Fork 0

Just comment fixes

This commit is contained in:
Michael Hackstein 2017-03-09 12:20:22 +01:00
parent d0244b3d60
commit a7965945d9
3 changed files with 2 additions and 4 deletions

View File

@ -101,7 +101,7 @@ void CollectionKeys::create(TRI_voc_tick_t maxTick) {
_vpack.reserve(16384);
// copy all datafile markers into the result under the read-lock
// copy all document tokens into the result under the read-lock
{
SingleCollectionTransaction trx(
transaction::StandaloneContext::Create(_collection->vocbase()), _name,
@ -125,7 +125,7 @@ void CollectionKeys::create(TRI_voc_tick_t maxTick) {
trx.finish(res);
}
// now sort all markers without the read-lock
// now sort all document tokens without the read-lock
std::sort(_vpack.begin(), _vpack.end(),
[](uint8_t const* lhs, uint8_t const* rhs) -> bool {
return (StringRef(transaction::helpers::extractKeyFromDocument(VPackSlice(lhs))) < StringRef(transaction::helpers::extractKeyFromDocument(VPackSlice(rhs))));

View File

@ -1351,7 +1351,6 @@ static void JS_PropertiesVocbaseCol(
arangodb::Result res2 = physical->persistProperties();
// TODO Review
// TODO API compatibility, for now we ignore if persisting fails...
}
}

View File

@ -1050,7 +1050,6 @@ int LogicalCollection::remove(transaction::Methods* trx,
ManagedDocumentResult& previous) {
resultMarkerTick = 0;
// create remove marker
TRI_voc_rid_t revisionId = 0;
if (options.isRestore) {
VPackSlice oldRev = TRI_ExtractRevisionIdAsSlice(slice);