- int send_length;
-
- if (expiration)
- {
- if ((instance->major_version == 1 and
- instance->minor_version > 2) or
- instance->major_version > 1)
- {
- return memcached_set_error(*ptr, MEMCACHED_INVALID_ARGUMENTS, MEMCACHED_AT,
- memcached_literal_param("Memcached server version does not allow expiration of deleted items"));
- }
- else
- {
- /* ensure that we are connected, otherwise we might bump the
- * command counter before connection */
- memcached_return_t rc;
- if ((rc= memcached_connect(instance)) != MEMCACHED_SUCCESS)
- {
- WATCHPOINT_ERROR(rc);
- return rc;
- }
-
- if (instance->minor_version == 0)
- {
- if (reply == false or flush == false)
- {
- /* We might get out of sync with the server if we send this command
- * to a server newer than 1.2.x.. enable reply and buffered mode.
- */
- flush= true;
- if (reply == false)
- {
- memcached_server_response_increment(instance);
- }
- reply= true;
- }
- }
-
- send_length= snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE,
- "delete %.*s%.*s %u%s\r\n",
+ int send_length= snprintf(buffer, MEMCACHED_DEFAULT_COMMAND_SIZE,
+ "delete %.*s%.*s%s\r\n",