If we happen to shutdown with dirty.pending_releases, after mount
we will most likely want to free them. And its an error - they will
already be free.
Signed-off-by: Adam Kupczyk <akupczyk@ibm.com>
_close_writer(log.writer);
log.writer = NULL;
log.t.clear();
-
+ // if we umount with pending release, we can possibly mount again
+ // with pending release, and will release something that is not allocated
+ for (auto& d: dirty.pending_release) {
+ d.clear();
+ }
vselector.reset(nullptr);
_stop_alloc();
nodes.file_map.clear();