From deaec79e06806d404e15abdf8c5449b28d465cb7 Mon Sep 17 00:00:00 2001 From: Neil Fortner Date: Mon, 10 Apr 2017 11:08:47 -0500 Subject: Update H5VL_daosm_file_flush to reflect "auto slip" behaviour of daos_epoch_commit. No functional code changes since the previous code was commented out due to snapshots not being implemented in daos. --- src/H5VLdaosm.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/src/H5VLdaosm.c b/src/H5VLdaosm.c index c1a1108..0d62bc1 100644 --- a/src/H5VLdaosm.c +++ b/src/H5VLdaosm.c @@ -1475,10 +1475,6 @@ H5VL_daosm_file_flush(H5VL_daosm_file_t *file) /* Commit the epoch */ if(file->my_rank == 0) { - /* Commit the epoch */ - if(0 != (ret = daos_epoch_commit(file->coh, file->epoch, NULL /*state*/, NULL /*event*/))) - HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "failed to commit epoch: %d", ret) - /* Save a snapshot of this epoch if requested */ /* Disabled until snapshots are supported in DAOS DSMINC */ #if 0 @@ -1487,13 +1483,9 @@ H5VL_daosm_file_flush(H5VL_daosm_file_t *file) HGOTO_ERROR(H5E_FILE, H5E_WRITEERROR, FAIL, "can't create snapshot: %d", ret) #endif - /* Slip the epoch, indicating we don't need to reference - * anything prior */ - /* Disabled until snapshots are supported in DAOS DSMINC */ -#if 0 - if(0 != (ret = daos_epoch_slip(file->coh, file->epoch, NULL /*state*/, NULL /*event*/))) - HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "failed to slip epoch: %d", ret) -#endif + /* Commit the epoch. This should slip previous epochs automatically. */ + if(0 != (ret = daos_epoch_commit(file->coh, file->epoch, NULL /*state*/, NULL /*event*/))) + HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "failed to commit epoch: %d", ret) } /* end if */ /* Advance the epoch */ -- cgit v0.12