- Timestamp:
- 12/23/08 14:21:39 (4 years ago)
- Location:
- lang/c/memstored/trunk/src
- Files:
-
- 2 modified
-
binproto.cc (modified) (2 diffs)
-
binproto.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/c/memstored/trunk/src/binproto.cc
r27279 r27281 46 46 NULL, // decrement 47 47 NULL, // quit 48 NULL,//cmd_flush, // flush48 cmd_flush, // flush 49 49 cmd_get, // getq 50 NULL,//cmd_noop, // noop50 cmd_noop, // noop 51 51 NULL, // version 52 52 cmd_get, // getk … … 185 185 } 186 186 187 void MemprotoBinary::flush(auto_bufref_t ref, 188 memproto_header* h, 189 uint32_t expiration) 190 { 191 if(expiration != 0) { 192 send_response_nodata(h, MEMPROTO_RES_INVALID_ARGUMENTS, 0); 193 return; 194 } 195 send_response_nodata(h, MEMPROTO_RES_NO_ERROR, 0); 196 } 197 198 void MemprotoBinary::noop(auto_bufref_t ref, 199 memproto_header* h) 200 { 201 send_response_nodata(h, MEMPROTO_RES_NO_ERROR, 0); 202 } 187 203 188 204 -
lang/c/memstored/trunk/src/binproto.h
r27279 r27281 62 62 { SUBMIT(del, h, key, keylen, expiration); } 63 63 64 static void cmd_flush(void* self, memproto_header* h, 65 uint32_t expiration) 66 { SUBMIT(flush, h, expiration); } 67 68 static void cmd_noop(void* self, memproto_header* h) 69 { SUBMIT(noop, h); } 70 64 71 65 72 void get(auto_bufref_t ref, … … 82 89 const char* key, uint16_t keylen, 83 90 uint32_t expiration); 91 92 void flush(auto_bufref_t ref, 93 memproto_header* h, 94 uint32_t expiration); 95 96 void noop(auto_bufref_t ref, 97 memproto_header* h); 84 98 85 99 private:
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)