Skip to content

Instantly share code, notes, and snippets.

@hidek
Created June 3, 2009 03:35
Show Gist options
  • Select an option

  • Save hidek/122772 to your computer and use it in GitHub Desktop.

Select an option

Save hidek/122772 to your computer and use it in GitHub Desktop.
--- TableMap.cpp.orig 2009-06-03 12:32:39.000000000 +0900
+++ TableMap.cpp 2009-06-03 12:32:09.000000000 +0900
@@ -165,6 +165,7 @@
bool TableMap::beginReloc(const string& newLowerBound)
{
bool ret = false;
+ Node::PreRelocLock* lock;
// lock mutex
_lockMutex();
@@ -175,7 +176,7 @@
if (node->second.relocLock != NULL) {
goto ON_RETURN;
}
- Node::PreRelocLock* lock = new Node::PreRelocLock(newLowerBound);
+ lock = new Node::PreRelocLock(newLowerBound);
for (RowLocks::iterator rli = rowLocks_.lower_bound(node->first);
rli != rowLocks_.end() && rli->first < newLowerBound;
++rli) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment