Created
August 29, 2013 13:14
-
-
Save tony2001/6377926 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/ha_pinba.cc b/src/ha_pinba.cc | |
index 311bc2e..bcf54c4 100644 | |
--- a/src/ha_pinba.cc | |
+++ b/src/ha_pinba.cc | |
@@ -3566,14 +3566,14 @@ inline int ha_pinba::requests_fetch_row(unsigned char *buf, size_t index, size_t | |
if (index == p->in || index < 0 || index >= (unsigned int)p->size || p->in == p->out) { | |
pthread_rwlock_unlock(&D->collector_lock); | |
- DBUG_RETURN(HA_ERR_KEY_NOT_FOUND); | |
+ DBUG_RETURN(HA_ERR_END_OF_FILE); | |
} | |
record = REQ_POOL(p)[index]; | |
if (record.time.tv_sec == 0) { /* invalid record */ | |
pthread_rwlock_unlock(&D->collector_lock); | |
- DBUG_RETURN(HA_ERR_KEY_NOT_FOUND); | |
+ DBUG_RETURN(HA_ERR_END_OF_FILE); | |
} | |
old_map = dbug_tmp_use_all_columns(table, table->write_set); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment