Minor change
* mu/dbm.c (add_records): Set DBM meta-data after populating it with data.
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 | } | ... | ... |
-
Please register or sign in to post a comment