summaryrefslogtreecommitdiffstats
path: root/src/kadmin/dbutil
diff options
context:
space:
mode:
authorNicolas Williams <nico@cryptonector.com>2012-10-05 14:56:35 -0400
committerGreg Hudson <ghudson@mit.edu>2012-10-05 14:56:35 -0400
commit3221bdba150ac3910dc7058f02c71008ef56bf52 (patch)
tree2fcd6f483b41f365d75753d5b4acb4be5e009ff4 /src/kadmin/dbutil
parentf6235d9bf3ca20f506c807aa0280e2e8a5ddf1ca (diff)
downloadkrb5-3221bdba150ac3910dc7058f02c71008ef56bf52.tar.gz
krb5-3221bdba150ac3910dc7058f02c71008ef56bf52.tar.xz
krb5-3221bdba150ac3910dc7058f02c71008ef56bf52.zip
Sync iprop header in kdb5_util dump
[ghudson@mit.edu: split out from previous commit]
Diffstat (limited to 'src/kadmin/dbutil')
-rw-r--r--src/kadmin/dbutil/dump.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/kadmin/dbutil/dump.c b/src/kadmin/dbutil/dump.c
index e72de6377f..1009679311 100644
--- a/src/kadmin/dbutil/dump.c
+++ b/src/kadmin/dbutil/dump.c
@@ -2905,6 +2905,16 @@ load_db(argc, argv)
last_seconds;
log_ctx->ulog->kdb_last_time.useconds =
last_useconds;
+
+ /*
+ * Sync'ing the header is not necessary on any OS and
+ * filesystem where the filesystem and virtual memory block
+ * cache are unified, which is pretty much all cases that we
+ * care about. However, technically speaking we must msync()
+ * in order for our writes here to be visible to a running
+ * kpropd.
+ */
+ ulog_sync_header(log_ctx->ulog);
}
}
}