summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/record_store_test_updaterecord.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/record_store_test_updaterecord.h')
-rw-r--r--src/mongo/db/storage/record_store_test_updaterecord.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/src/mongo/db/storage/record_store_test_updaterecord.h b/src/mongo/db/storage/record_store_test_updaterecord.h
index f82feb6b592..be52887cf2b 100644
--- a/src/mongo/db/storage/record_store_test_updaterecord.h
+++ b/src/mongo/db/storage/record_store_test_updaterecord.h
@@ -41,21 +41,10 @@ namespace {
class UpdateNotifierSpy : public UpdateNotifier {
public:
UpdateNotifierSpy(OperationContext* txn, const RecordId& loc, const char* buf, size_t size)
- : _txn(txn), _loc(loc), _data(buf, size), nMoveCalls(0), nInPlaceCalls(0) {}
+ : _txn(txn), _loc(loc), _data(buf, size), nInPlaceCalls(0) {}
~UpdateNotifierSpy() {}
- Status recordStoreGoingToMove(OperationContext* txn,
- const RecordId& oldLocation,
- const char* oldBuffer,
- size_t oldSize) {
- nMoveCalls++;
- ASSERT_EQUALS(_txn, txn);
- ASSERT_EQUALS(_loc, oldLocation);
- ASSERT_EQUALS(_data, oldBuffer);
- return Status::OK();
- }
-
Status recordStoreGoingToUpdateInPlace(OperationContext* txn, const RecordId& loc) {
nInPlaceCalls++;
ASSERT_EQUALS(_txn, txn);
@@ -63,10 +52,6 @@ public:
return Status::OK();
}
- int numMoveCallbacks() const {
- return nMoveCalls;
- }
-
int numInPlaceCallbacks() const {
return nInPlaceCalls;
}
@@ -77,7 +62,6 @@ private:
std::string _data;
// To verify the number of callbacks to the notifier.
- int nMoveCalls;
int nInPlaceCalls;
};