diff options
| author | Yaniv Kaul <ykaul@redhat.com> | 2019-04-28 22:05:44 +0300 |
|---|---|---|
| committer | Atin Mukherjee <amukherj@redhat.com> | 2019-05-08 06:46:24 +0000 |
| commit | 1fa089e7a2b180e0bdcc1e7e09a63934a2a0c0ef (patch) | |
| tree | 92e28f0fb24fd550375e4cb401b9e7bfaa098efa /xlators/mgmt/glusterd/src/glusterd-store.h | |
| parent | aa52259de7b50625b754ce9fb5c0f38e22d79dd6 (diff) | |
glusterd/store: store all key-values in one shot
Instead of saving each key-value separately, which is slow (
especially as we fflush() after each!), store them all as one
string and write all together.
Implements https://github.com/gluster/glusterfs/issues/629
Change-Id: Ie77a272446b0b6785584b710a4fdd9c613dd9578
updates: bz#1193929
Signed-off-by: Yaniv Kaul <ykaul@redhat,.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-store.h')
| -rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-store.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-store.h b/xlators/mgmt/glusterd/src/glusterd-store.h index e60be6e7c91..8feebfa8a5d 100644 --- a/xlators/mgmt/glusterd/src/glusterd-store.h +++ b/xlators/mgmt/glusterd/src/glusterd-store.h @@ -28,6 +28,8 @@ typedef enum glusterd_store_ver_ac_ { GLUSTERD_VOLINFO_VER_AC_DECREMENT = 2, } glusterd_volinfo_ver_ac_t; +#define UUID_SIZE 36 + #define GLUSTERD_STORE_UUID_KEY "UUID" #define GLUSTERD_STORE_KEY_VOL_TYPE "type" @@ -177,9 +179,6 @@ void glusterd_replace_slash_with_hyphen(char *str); int32_t -glusterd_store_perform_volume_store(glusterd_volinfo_t *volinfo); - -int32_t glusterd_store_create_quota_conf_sh_on_absence(glusterd_volinfo_t *volinfo); int |
