src/rrd_daemon.c: Fix vim `folding'.
[rrdtool.git] / src / rrd_daemon.c
index a5e8e55..0fd0fab 100644 (file)
@@ -1156,7 +1156,10 @@ static int handle_request_wrote (int fd __attribute__((unused)), /* {{{ */
 
   ci = g_tree_lookup(cache_tree, file);
   if (ci == NULL)
-    goto out;
+  {
+    pthread_mutex_unlock(&cache_lock);
+    return (0);
+  }
 
   if (ci->values)
   {
@@ -1168,10 +1171,9 @@ static int handle_request_wrote (int fd __attribute__((unused)), /* {{{ */
 
   _wipe_ci_values(ci, time(NULL));
 
-out:
   pthread_mutex_unlock(&cache_lock);
-  return 0;
-}
+  return (0);
+} /* }}} int handle_request_wrote */
 
 /* if fd < 0, we are in journal replay mode */
 static int handle_request (int fd, char *buffer, size_t buffer_size) /* {{{ */