summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-05-19 12:42:31 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-05-20 11:47:14 -0700
commit0961d301dd74a133a16425b10be02787a499e453 (patch)
tree61e60f8ecd4fa33343cd37794d53d2341dd0cf48 /xlators
parent693e4f912b618d35b85fe6521d87fb7f683421d0 (diff)
io-threads: Use boolean enums instead of integer 1
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/io-threads/src/io-threads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c
index a04f664e816..3136c9c1aa1 100644
--- a/xlators/performance/io-threads/src/io-threads.c
+++ b/xlators/performance/io-threads/src/io-threads.c
@@ -2342,7 +2342,7 @@ iot_ordered_exit (int cond_waitres, iot_worker_t *worker)
gf_boolean_t allow_exit = _gf_false;
if (worker->state == IOT_STATE_EXIT_REQUEST) {
- allow_exit = 1;
+ allow_exit = _gf_true;
} else if (cond_waitres == ETIMEDOUT) {
allow_exit = iot_can_ordered_exit (worker);
}
@@ -2457,7 +2457,7 @@ iot_unordered_exit (int cond_waitres, iot_worker_t *worker)
gf_boolean_t allow_exit = _gf_false;
if (worker->state == IOT_STATE_EXIT_REQUEST) {
- allow_exit = 1;
+ allow_exit = _gf_true;
} else if (cond_waitres == ETIMEDOUT) {
allow_exit = iot_can_unordered_exit (worker);
}