Commit c7fb4a0f c7fb4a0f593a9d79c2fee327441f2905d887f334 by Sergey Poznyakoff

Minor change

* mu/dbm.c (add_records): Set DBM meta-data after populating it with
data.
1 parent e0222cd5
Showing 1 changed file with 2 additions and 2 deletions
...@@ -1252,8 +1252,6 @@ add_records (int mode, int replace) ...@@ -1252,8 +1252,6 @@ add_records (int mode, int replace)
1252 1252
1253 /* Open the database */ 1253 /* Open the database */
1254 db = open_db_file (mode); 1254 db = open_db_file (mode);
1255 if (known_meta_data)
1256 set_db_ownership (db);
1257 1255
1258 /* Read and store the actual data */ 1256 /* Read and store the actual data */
1259 if (rc == 0 && input_length (&input) > 0) 1257 if (rc == 0 && input_length (&input) > 0)
...@@ -1282,6 +1280,8 @@ add_records (int mode, int replace) ...@@ -1282,6 +1280,8 @@ add_records (int mode, int replace)
1282 mu_stream_ioctl (mu_strerr, MU_IOCTL_LOGSTREAM, MU_IOCTL_LOGSTREAM_SET_LOCUS, 1280 mu_stream_ioctl (mu_strerr, MU_IOCTL_LOGSTREAM, MU_IOCTL_LOGSTREAM_SET_LOCUS,
1283 &save_locus); 1281 &save_locus);
1284 1282
1283 if (known_meta_data)
1284 set_db_ownership (db);
1285 mu_dbm_destroy (&db); 1285 mu_dbm_destroy (&db);
1286 mu_stream_unref (instream); 1286 mu_stream_unref (instream);
1287 } 1287 }
......