mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-29 16:15:50 +00:00
add ref counting for cassandra callbacks
This commit is contained in:
@@ -1315,6 +1315,7 @@ public:
|
||||
bool isDeleted;
|
||||
|
||||
uint32_t currentRetries = 0;
|
||||
std::atomic<int> refs = 1;
|
||||
|
||||
WriteCallbackData(
|
||||
CassandraFlatMapBackend const* f,
|
||||
@@ -1330,6 +1331,8 @@ public:
|
||||
, isCreated(isCreated)
|
||||
, isDeleted(isDeleted)
|
||||
{
|
||||
if (isCreated or isDeleted)
|
||||
refs = 2;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user