Skip to content

Commit

Permalink
Add back globalBridge->registeredPtrs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
abmusse authored and ThePrez committed Feb 26, 2020
1 parent c6efdfa commit 2384b25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions db2i_ileBridge.cc
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void db2i_ileBridge::registerPtr(const void* ptr, ILEMemHandle* receiver)
#ifndef DBUG_OFF
uint32 truncHandle = arguments->base.result.r_uint64;
DBUG_PRINT("db2i_ileBridge::registerPtr",("Register 0x%p with handle %d", ptr, truncHandle));
getBridgeForThread()->registeredPtrs++;//TODO: investigate why the thread-specific one does not work on plugin install
globalBridge->registeredPtrs++;//TODO: investigate why the thread-specific one does not work on plugin install
#endif

*receiver = arguments->base.result.r_uint64;
Expand Down Expand Up @@ -176,7 +176,7 @@ void db2i_ileBridge::unregisterPtr(ILEMemHandle handle)

#ifndef DBUG_OFF
DBUG_PRINT("db2i_ileBridge::unregisterPtr",("Unregister handle %d", (uint32)handle));
getBridgeForThread()->registeredPtrs--; //TODO: investigate why thread-specific one doesn't work on plugin install
globalBridge->registeredPtrs--; //TODO: investigate why thread-specific one doesn't work on plugin install
#endif
}

Expand Down

0 comments on commit 2384b25

Please sign in to comment.