diff options
author | H. Peter Anvin <hpa@zytor.com> | 2001-10-16 03:38:27 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2001-10-16 03:38:27 +0000 |
commit | 9466634b21f2e936b4d6f5ddca0df095e33add89 (patch) | |
tree | 9fffceece60d95dca1c9c833d480ea5a172ef4cc /teststore.c | |
parent | bafa642948c55d4848fe1c66206eec267ec8119f (diff) | |
download | lpsm-9466634b21f2e936b4d6f5ddca0df095e33add89.tar.gz lpsm-9466634b21f2e936b4d6f5ddca0df095e33add89.tar.xz lpsm-9466634b21f2e936b4d6f5ddca0df095e33add89.zip |
Beginnings of a synchronicity model...to-tytso-20011015c
Diffstat (limited to 'teststore.c')
-rw-r--r-- | teststore.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/teststore.c b/teststore.c index ba85141..532e7aa 100644 --- a/teststore.c +++ b/teststore.c @@ -30,18 +30,16 @@ int main(int argc, char *argv[]) strcpy((char *)buf + 8192, "This is the third page!"); printf("Read from third page: %s\n", (char *)buf + 8192); - objstore_checkpoint(0.5); + objstore_checkpoint(0.5, OBJSYNC_WAIT); strcpy((char *)buf + 8192, "This is also the third page!"); printf("Read from third page: %s\n", (char *)buf + 8192); - objstore_checkpoint(0.0); + objstore_checkpoint(0.0, OBJSYNC_WAIT); objstore_extend(65536); strcpy((char *)buf + 32768, "This is the ninth page!"); - objstore_checkpoint(0.0); - - sleep(5); + objstore_checkpoint(0.0, OBJSYNC_SYNC); return 0; } |