Replace deprecated Xapian::Database::flush() with commit() (name change only)
This commit is contained in:
parent
7567025ad3
commit
525fff9120
@ -1670,7 +1670,7 @@ void Db::waitUpdIdle()
|
|||||||
// We flush here just for correct measurement of the thread work time
|
// We flush here just for correct measurement of the thread work time
|
||||||
string ermsg;
|
string ermsg;
|
||||||
try {
|
try {
|
||||||
m_ndb->xwdb.flush();
|
m_ndb->xwdb.commit();
|
||||||
} XCATCHERROR(ermsg);
|
} XCATCHERROR(ermsg);
|
||||||
if (!ermsg.empty()) {
|
if (!ermsg.empty()) {
|
||||||
LOGERR("Db::waitUpdIdle: flush() failed: " << (ermsg) << "\n" );
|
LOGERR("Db::waitUpdIdle: flush() failed: " << (ermsg) << "\n" );
|
||||||
@ -1702,7 +1702,7 @@ bool Db::doFlush()
|
|||||||
}
|
}
|
||||||
string ermsg;
|
string ermsg;
|
||||||
try {
|
try {
|
||||||
m_ndb->xwdb.flush();
|
m_ndb->xwdb.commit();
|
||||||
} XCATCHERROR(ermsg);
|
} XCATCHERROR(ermsg);
|
||||||
if (!ermsg.empty()) {
|
if (!ermsg.empty()) {
|
||||||
LOGERR("Db::doFlush: flush() failed: " << (ermsg) << "\n" );
|
LOGERR("Db::doFlush: flush() failed: " << (ermsg) << "\n" );
|
||||||
@ -1907,7 +1907,7 @@ bool Db::purge()
|
|||||||
// that any added document would go to the index. Kept here
|
// that any added document would go to the index. Kept here
|
||||||
// because it doesn't really hurt.
|
// because it doesn't really hurt.
|
||||||
try {
|
try {
|
||||||
m_ndb->xwdb.flush();
|
m_ndb->xwdb.commit();
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
LOGERR("Db::purge: 1st flush failed\n" );
|
LOGERR("Db::purge: 1st flush failed\n" );
|
||||||
|
|
||||||
@ -1952,7 +1952,7 @@ bool Db::purge()
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
m_ndb->xwdb.flush();
|
m_ndb->xwdb.commit();
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
LOGERR("Db::purge: 2nd flush failed\n" );
|
LOGERR("Db::purge: 2nd flush failed\n" );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user