[thin_delta] Allow optional arg when using -m
This commit is contained in:
@@ -188,10 +188,8 @@ namespace thin_provisioning {
|
||||
read_superblock(open_bm(path, block_manager<>::READ_ONLY, false), 0);
|
||||
uint64_t ms = sb.metadata_snap_;
|
||||
|
||||
if (!ms) {
|
||||
cerr << "no metadata snapshot found!" << endl;
|
||||
exit(1);
|
||||
}
|
||||
if (!ms)
|
||||
throw runtime_error("no metadata snapshot found!\n");
|
||||
|
||||
return ms;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user