@@ -42,7 +42,6 @@ int cmd_readlink (optparse_t *p, int argc, char **argv);
4242int cmd_mkdir (optparse_t * p , int argc , char * * argv );
4343int cmd_version (optparse_t * p , int argc , char * * argv );
4444int cmd_wait (optparse_t * p , int argc , char * * argv );
45- int cmd_dropcache (optparse_t * p , int argc , char * * argv );
4645int cmd_copy (optparse_t * p , int argc , char * * argv );
4746int cmd_move (optparse_t * p , int argc , char * * argv );
4847int cmd_dir (optparse_t * p , int argc , char * * argv );
@@ -184,13 +183,6 @@ static struct optparse_option ls_opts[] = {
184183 OPTPARSE_TABLE_END
185184};
186185
187- static struct optparse_option dropcache_opts [] = {
188- { .name = "all" , .key = 'a' , .has_arg = 0 ,
189- .usage = "Drop KVS across all ranks" ,
190- },
191- OPTPARSE_TABLE_END
192- };
193-
194186static struct optparse_option unlink_opts [] = {
195187 { .name = "namespace" , .key = 'N' , .has_arg = 1 ,
196188 .usage = "Specify KVS namespace to use." ,
@@ -360,13 +352,6 @@ static struct optparse_subcommand subcommands[] = {
360352 0 ,
361353 copy_opts
362354 },
363- { "dropcache" ,
364- "[--all]" ,
365- "Tell KVS to drop its cache" ,
366- cmd_dropcache ,
367- 0 ,
368- dropcache_opts
369- },
370355 { "version" ,
371356 "[-N ns]" ,
372357 "Display current KVS version" ,
@@ -1213,27 +1198,6 @@ int cmd_wait (optparse_t *p, int argc, char **argv)
12131198 return (0 );
12141199}
12151200
1216- int cmd_dropcache (optparse_t * p , int argc , char * * argv )
1217- {
1218- flux_t * h ;
1219-
1220- if (!(h = flux_open (NULL , 0 )))
1221- log_err_exit ("flux_open" );
1222-
1223- if (optparse_hasopt (p , "all" )) {
1224- flux_msg_t * msg = flux_event_encode ("kvs.dropcache" , NULL );
1225- if (!msg || flux_send (h , msg , 0 ) < 0 )
1226- log_err_exit ("flux_send" );
1227- flux_msg_destroy (msg );
1228- }
1229- else {
1230- if (flux_kvs_dropcache (h ) < 0 )
1231- log_err_exit ("flux_kvs_dropcache" );
1232- }
1233- flux_close (h );
1234- return (0 );
1235- }
1236-
12371201static char * process_key (const char * key )
12381202{
12391203 char * nkey ;
0 commit comments