8000 Cleanup in preparation for Replication 2.0 transaction handling (try #2) by goedderz · Pull Request #14907 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Cleanup in preparation for Replication 2.0 transaction handling (try #2) #14907

New i 8000 ssue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Nov 4, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes
  • Loading branch information
goedderz committed Oct 14, 2021
commit a0933e1ce299f12b70cca6b1857ac8b4e0faf3bb
12 changes: 0 additions & 12 deletions arangod/RocksDBEngine/RocksDBTransactionState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,18 +435,6 @@ void RocksDBTransactionState::trackIndexRemove(DataSourceId cid, IndexId idxId,
}
}

bool RocksDBTransactionState::isOnlyExclusiveTransaction() const {
if (!AccessMode::isWriteOrExclusive(_type)) {
return false;
}
for (TransactionCollection* coll : _collections) {
if (AccessMode::isWrite(coll->accessType())) {
return false;
}
}
return true;
}

rocksdb::SequenceNumber RocksDBTransactionState::beginSeq() const {
return _rocksMethods->GetSequenceNumber();
}
Expand Down
2 changes: 0 additions & 2 deletions arangod/RocksDBEngine/RocksDBTransactionState.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,6 @@ class RocksDBTransactionState final : public TransactionState {
/// Used to update the estimate after the trx committed
void trackIndexRemove(DataSourceId cid, IndexId idxObjectId, uint64_t hash);

[[nodiscard]] bool isOnlyExclusiveTransaction() const;

[[nodiscard]] rocksdb::SequenceNumber beginSeq() const;

#ifdef ARANGODB_ENABLE_MAINTAINER_MODE
Expand Down
1 change: 1 addition & 0 deletions arangod/StorageEngine/TransactionState.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "VocBase/voc-types.h"

#include <map>
#include <variant>

#ifdef ARANGODB_ENABLE_MAINTAINER_MODE

Expand Down
0