summaryrefslogtreecommitdiffstats
path: root/xlators/features/upcall/src/upcall-internal.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/features/upcall/src/upcall-internal.c')
-rw-r--r--xlators/features/upcall/src/upcall-internal.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/xlators/features/upcall/src/upcall-internal.c b/xlators/features/upcall/src/upcall-internal.c
index 81199eb074c..66cbddf5fa9 100644
--- a/xlators/features/upcall/src/upcall-internal.c
+++ b/xlators/features/upcall/src/upcall-internal.c
@@ -279,6 +279,11 @@ upcall_cleanup_expired_clients (xlator_t *this,
up_client->access_time;
if (t_expired > (2*timeout)) {
+
+ gf_log (THIS->name, GF_LOG_TRACE,
+ "Cleaning up client_entry(%s)",
+ up_client->client_uid);
+
ret =
__upcall_cleanup_client_entry (up_client);
@@ -289,9 +294,6 @@ upcall_cleanup_expired_clients (xlator_t *this,
up_client);
goto out;
}
- gf_log (THIS->name, GF_LOG_TRACE,
- "Cleaned up client_entry(%s)",
- up_client->client_uid);
}
}
}
@@ -511,8 +513,13 @@ upcall_cache_invalidate (call_frame_t *frame, xlator_t *this, client_t *client,
gf_uuid_copy (up_inode_ctx->gfid, stbuf->ia_gfid);
}
- GF_VALIDATE_OR_GOTO ("upcall_cache_invalidate",
- !(gf_uuid_is_null (up_inode_ctx->gfid)), out);
+ if (gf_uuid_is_null (up_inode_ctx->gfid)) {
+ gf_msg_debug (this->name, 0, "up_inode_ctx->gfid and "
+ "stbuf->ia_gfid is NULL, fop:%s",
+ gf_fop_list[frame->root->op]);
+ goto out;
+ }
+
pthread_mutex_lock (&up_inode_ctx->client_list_lock);
{
list_for_each_entry_safe (up_client_entry, tmp,