diff options
author | Vijay Bellur <vijay@gluster.com> | 2010-10-12 03:06:30 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2010-10-12 02:39:01 -0700 |
commit | 9bad9d59f0f19fe20f90c6ed80e25c7db08b3371 (patch) | |
tree | 05dc2622a1ab6e00930f3846bd79cf560e8a939e /xlators/performance | |
parent | f637330995eab92a1d0b9f4ad9c43acfaad35037 (diff) |
Change assert to GF_ASSERT
Signed-off-by: Vijay Bellur <vijay@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 971 (dynamic volume management)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=971
Diffstat (limited to 'xlators/performance')
-rw-r--r-- | xlators/performance/io-cache/src/io-cache.c | 4 | ||||
-rw-r--r-- | xlators/performance/io-cache/src/page.c | 2 | ||||
-rw-r--r-- | xlators/performance/quick-read/src/quick-read.c | 2 | ||||
-rw-r--r-- | xlators/performance/read-ahead/src/page.c | 2 | ||||
-rw-r--r-- | xlators/performance/write-behind/src/write-behind.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/xlators/performance/io-cache/src/io-cache.c b/xlators/performance/io-cache/src/io-cache.c index 787c073e5e0..e76764bcb6a 100644 --- a/xlators/performance/io-cache/src/io-cache.c +++ b/xlators/performance/io-cache/src/io-cache.c @@ -1938,10 +1938,10 @@ ioc_priv_dump (xlator_t *this) char key_prefix[GF_DUMP_MAX_BUF_LEN]; char key[GF_DUMP_MAX_BUF_LEN]; - assert (this); + GF_ASSERT (this); priv = this->private; - assert (priv); + GF_ASSERT (priv); gf_proc_dump_build_key (key_prefix, "xlator.performance.io-cache", "priv"); diff --git a/xlators/performance/io-cache/src/page.c b/xlators/performance/io-cache/src/page.c index 07757c0c1a6..47a8fbb6606 100644 --- a/xlators/performance/io-cache/src/page.c +++ b/xlators/performance/io-cache/src/page.c @@ -779,7 +779,7 @@ ioc_frame_return (call_frame_t *frame) int32_t wait_count = 0; local = frame->local; - assert (local->wait_count > 0); + GF_ASSERT (local->wait_count > 0); ioc_local_lock (local); { diff --git a/xlators/performance/quick-read/src/quick-read.c b/xlators/performance/quick-read/src/quick-read.c index 965f943799b..3bd0a615424 100644 --- a/xlators/performance/quick-read/src/quick-read.c +++ b/xlators/performance/quick-read/src/quick-read.c @@ -161,7 +161,7 @@ qr_fd_ctx_free (qr_fd_ctx_t *qr_fd_ctx) goto out; } - assert (list_empty (&qr_fd_ctx->waiting_ops)); + GF_ASSERT (list_empty (&qr_fd_ctx->waiting_ops)); GF_FREE (qr_fd_ctx->path); GF_FREE (qr_fd_ctx); diff --git a/xlators/performance/read-ahead/src/page.c b/xlators/performance/read-ahead/src/page.c index 5e69add2df5..925bc253d65 100644 --- a/xlators/performance/read-ahead/src/page.c +++ b/xlators/performance/read-ahead/src/page.c @@ -423,7 +423,7 @@ ra_frame_return (call_frame_t *frame) int32_t wait_count = 0; local = frame->local; - assert (local->wait_count > 0); + GF_ASSERT (local->wait_count > 0); ra_local_lock (local); { diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index 70335f6227a..d693b596b50 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -2516,7 +2516,7 @@ wb_release (xlator_t *this, fd_t *fd) if (file != NULL) { LOCK (&file->lock); { - assert (list_empty (&file->request)); + GF_ASSERT (list_empty (&file->request)); } UNLOCK (&file->lock); |