db: Fix too broad catch clause

The current handling, which ignores the future and a FIXME, should
apply only to the case when a table is missing.
This commit is contained in:
Tomasz Grabiec
2015-06-17 13:56:43 +02:00
parent 370712f741
commit a8fde0847e

View File

@@ -927,7 +927,7 @@ database::query(const query::read_command& cmd, const std::vector<query::partiti
try {
column_family& cf = find_column_family(cmd.cf_id);
return cf.query(cmd, ranges);
} catch (...) {
} catch (const no_such_column_family&) {
// FIXME: load from sstables
return make_empty();
}