summaryrefslogtreecommitdiffstats
path: root/geo-replication/src/gsyncd.c
diff options
context:
space:
mode:
Diffstat (limited to 'geo-replication/src/gsyncd.c')
-rw-r--r--geo-replication/src/gsyncd.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/geo-replication/src/gsyncd.c b/geo-replication/src/gsyncd.c
index 0830e7f9bcc..21864db4af2 100644
--- a/geo-replication/src/gsyncd.c
+++ b/geo-replication/src/gsyncd.c
@@ -29,6 +29,7 @@
#ifdef USE_LIBGLUSTERFS
#include "glusterfs.h"
#include "globals.h"
+#include "defaults.h"
#endif
#include "common-utils.h"
@@ -341,10 +342,11 @@ struct invocable invocables[] = {
int
main (int argc, char **argv)
{
- char *evas = NULL;
- struct invocable *i = NULL;
- char *b = NULL;
- char *sargv = NULL;
+ int ret = -1;
+ char *evas = NULL;
+ struct invocable *i = NULL;
+ char *b = NULL;
+ char *sargv = NULL;
#ifdef USE_LIBGLUSTERFS
glusterfs_ctx_t *ctx = NULL;
@@ -357,6 +359,11 @@ main (int argc, char **argv)
return 1;
THIS->ctx = ctx;
+ ret = default_mem_acct_init (THIS);
+ if (ret) {
+ fprintf (stderr, "internal error: mem accounting failed\n");
+ return 1;
+ }
#endif
evas = getenv (_GLUSTERD_CALLED_);