Skip to content

Commit d7cf1c8

Browse files
committed
libkvs: remove flux_kvs_dropcache()
Problem: The kvs.dropcache RPC target has been removed, but the library function flux_kvs_dropcache() still exists. Remove flux_kvs_dropcache() from libkvs.
1 parent 4630b35 commit d7cf1c8

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

src/common/libkvs/kvs.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -162,21 +162,6 @@ int flux_kvs_wait_version (flux_t *h, const char *ns, int version)
162162
return ret;
163163
}
164164

165-
int flux_kvs_dropcache (flux_t *h)
166-
{
167-
flux_future_t *f;
168-
int rc = -1;
169-
170-
if (!(f = flux_rpc (h, "kvs.dropcache", NULL, FLUX_NODEID_ANY, 0)))
171-
goto done;
172-
if (flux_future_get (f, NULL) < 0)
173-
goto done;
174-
rc = 0;
175-
done:
176-
flux_future_destroy (f);
177-
return rc;
178-
}
179-
180165
/*
181166
* vi:tabstop=4 shiftwidth=4 expandtab
182167
*/

src/common/libkvs/kvs.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,6 @@ flux_future_t *flux_kvs_namespace_remove (flux_t *h, const char *ns);
6666
int flux_kvs_get_version (flux_t *h, const char *ns, int *versionp);
6767
int flux_kvs_wait_version (flux_t *h, const char *ns, int version);
6868

69-
/* Garbage collect the cache. Drop all data that doesn't have a
70-
* reference in the namespace.
71-
* Returns -1 on error (errno set), 0 on success.
72-
*/
73-
int flux_kvs_dropcache (flux_t *h);
74-
7569
#ifdef __cplusplus
7670
}
7771
#endif

0 commit comments

Comments
 (0)