version ocnst

This commit is contained in:
NikVolf 2016-10-15 18:37:42 +03:00
parent c72f3f444d
commit 767e78b416
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ impl Storage {
let cfg = DatabaseConfig::with_columns(Some(COL_COUNT));
let db = try!(Database::open(&cfg, &*path.as_ref().to_string_lossy()));
match try!(db.get(Some(COL_META), b"version")) {
match try!(db.get(Some(COL_META), KEY_VERSION)) {
Some(val) => {
let ver = LittleEndian::read_u32(&val);
if ver == DB_VERSION {