- check only the existence of the key before create key
Change-Id: Ieff93c62f36f0e13fa65e02c84edd9b0f9ede9ac
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
db = g_hash_table_lookup(dbs, dbpath);
- if(!db)
+ if (!db)
return 0;
g_hash_table_remove(dbs, dbpath);
return -1;
r = get_val(ly, layer->uid, BUXTON_LAYER_BASE, key, NULL, NULL, NULL);
- if (r == -1 && errno != ENOENT)
- return -1;
-
if (r == 0) {
errno = EEXIST;
return -1;
r = direct_close(layer, ly);
- if (r == -1){
+ if (r == -1) {
bxt_err("failed to close db(%s)", ly->name);
return -1;
}