forked from Mirrors/privacore-open-source-search-engine
Make RdbBuckets::addNode behaviour similar to RdbTree::addNode when it's not writable/is saving
This commit is contained in:
@ -678,8 +678,8 @@ bool RdbBuckets::resizeTable( int32_t numNeeded ) {
|
||||
|
||||
int32_t RdbBuckets::addNode(collnum_t collnum, char *key, char *data, int32_t dataSize) {
|
||||
if (!m_isWritable || m_isSaving) {
|
||||
g_errno = EAGAIN;
|
||||
return false;
|
||||
g_errno = ETRYAGAIN;
|
||||
return -1;
|
||||
}
|
||||
|
||||
m_needsSave = true;
|
||||
|
Reference in New Issue
Block a user