summaryrefslogtreecommitdiffstats
path: root/xlators/storage/posix/src/posix.h
diff options
context:
space:
mode:
authorVikas Gorur <vikas@gluster.com>2010-01-21 06:46:25 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-01-21 04:25:45 -0800
commit84fe79c086a4623e1bb1c0ca5cebff19d19d15ec (patch)
tree1c00cf6d4d54b5b09682e397cd7cc97c0462dca3 /xlators/storage/posix/src/posix.h
parenta6a1f596a443b6a015dca6435f1d22fc582acc80 (diff)
storage/posix: Make the janitor sleep duration configurable.
Signed-off-by: Vikas Gorur <vikas@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 533 (close() should not block main loop) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=533
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r--xlators/storage/posix/src/posix.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h
index 3280c979e..f92e256fb 100644
--- a/xlators/storage/posix/src/posix.h
+++ b/xlators/storage/posix/src/posix.h
@@ -78,6 +78,8 @@ struct posix_private {
struct timeval prev_fetch_time;
struct timeval init_time;
+ time_t last_landfill_check;
+ int32_t janitor_sleep_duration;
struct list_head janitor_fds;
pthread_cond_t janitor_cond;
pthread_mutex_t janitor_lock;