summaryrefslogtreecommitdiff
path: root/include/heap.h
diff options
context:
space:
mode:
authorAshish Agarwal <ashish.y.agarwal@oracle.com>2011-09-27 17:38:51 +0530
committerAshish Agarwal <ashish.y.agarwal@oracle.com>2011-09-27 17:38:51 +0530
commit5dbcff9b9c86dc9608252d270b6ebff7a6066040 (patch)
tree0609c557ee598226869fb5fc1f1406679fc64c48 /include/heap.h
parent147f897d376c26327a85a6c6121dfc6f704d1df0 (diff)
downloadmariadb-git-5dbcff9b9c86dc9608252d270b6ebff7a6066040.tar.gz
BUG#11759349 - 51655: CREATE TABLE IN MEMORY ENGINE DOESN'T STORE
CREATE_TIME IN INFORMATION_SC It was impossible to determine MEMORY table creation time, since it wasn't stored/exposed. With this patch creation time is saved and it is available via I_S.TABLES.CREATE_TIME. Note: it was decided that additional analysis is required before implementing UPDATE_TIME. Thus this patch doesn't store UPDATE_TIME.
Diffstat (limited to 'include/heap.h')
-rw-r--r--include/heap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/heap.h b/include/heap.h
index 0abdd71461e..7adaac33096 100644
--- a/include/heap.h
+++ b/include/heap.h
@@ -50,6 +50,7 @@ typedef struct st_heapinfo /* Struct from heap_info */
uint reclength; /* Length of one record */
int errkey;
ulonglong auto_increment;
+ time_t create_time;
} HEAPINFO;
@@ -146,6 +147,7 @@ typedef struct st_heap_share
uint open_count;
uchar *del_link; /* Link to next block with del. rec */
char * name; /* Name of "memory-file" */
+ time_t create_time;
#ifdef THREAD
THR_LOCK lock;
pthread_mutex_t intern_lock; /* Locking for use with _locking */