git-svn-id: svn://db.shs.com.ru/pip@830 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -142,8 +142,9 @@ bool PIBinaryLog::closeDevice() {
|
|||||||
is_indexed = false;
|
is_indexed = false;
|
||||||
index.clear();
|
index.clear();
|
||||||
index_pos.clear();
|
index_pos.clear();
|
||||||
|
bool e = isEmpty();
|
||||||
log_size = 0;
|
log_size = 0;
|
||||||
if (canWrite() && isEmpty()) {
|
if (canWrite() && e) {
|
||||||
file.remove();
|
file.remove();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user