From 46163c129ac9216ace94d15b272a3773e4f7685b Mon Sep 17 00:00:00 2001 From: Patrick LeBlanc Date: Wed, 10 Apr 2019 17:53:05 -0500 Subject: [PATCH] Neutered all of the excessive snapshotting that was going on. --- versioning/BRM/dbrm.cpp | 2 ++ versioning/BRM/slavecomm.cpp | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/versioning/BRM/dbrm.cpp b/versioning/BRM/dbrm.cpp index 984c4f9de..92b3f086d 100644 --- a/versioning/BRM/dbrm.cpp +++ b/versioning/BRM/dbrm.cpp @@ -3360,6 +3360,8 @@ vector DBRM::getEMFreeListEntries() throw() int DBRM::takeSnapshot() throw () { + return 0; // don't know why, but we're calling this all the time. Need to take most/all of those calls out, it's very wasteful. + ByteStream command, response; uint8_t err; diff --git a/versioning/BRM/slavecomm.cpp b/versioning/BRM/slavecomm.cpp index 24f84976e..1f05beae4 100644 --- a/versioning/BRM/slavecomm.cpp +++ b/versioning/BRM/slavecomm.cpp @@ -1929,7 +1929,8 @@ void SlaveComm::do_vbRollback2(ByteStream& msg) if (!standalone) master.write(reply); - takeSnapshot = true; + //takeSnapshot = true; + doSaveDelta = true; } void SlaveComm::do_vbCommit(ByteStream& msg) @@ -1961,7 +1962,8 @@ void SlaveComm::do_vbCommit(ByteStream& msg) if (!standalone) master.write(reply); - takeSnapshot = true; + //takeSnapshot = true; + doSaveDelta = true; } void SlaveComm::do_undo()