X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=isam%2Fmemory.c;h=4bbb4d6545cf8914ba7a472a7639b8b88c2df909;hb=c9c9df90cf9d66e46b177e62a4402a9def633634;hp=7962a0eb26fe7dae1832ea3995e4428a75a88d52;hpb=60603b577514c9e6559d37e11b4ce3aa26e51be3;p=idzebra-moved-to-github.git diff --git a/isam/memory.c b/isam/memory.c index 7962a0e..4bbb4d6 100644 --- a/isam/memory.c +++ b/isam/memory.c @@ -4,7 +4,10 @@ * Sebastian Hammer, Adam Dickmeiss * * $Log: memory.c,v $ - * Revision 1.4 1994-09-27 20:03:52 quinn + * Revision 1.5 1994-09-28 16:58:33 quinn + * Small mod. + * + * Revision 1.4 1994/09/27 20:03:52 quinn * Seems relatively bug-free. * * Revision 1.3 1994/09/26 17:11:30 quinn @@ -378,3 +381,14 @@ int is_m_seek_record(is_mtable *tab, const void *rec) return 0; } } + +int is_m_num_records(is_mtable *tab) +{ + if (tab->data->state < IS_MBSTATE_PARTIAL) + if (read_current_full(tab, tab->data) < 0) + { + log(LOG_FATAL, "read full failed"); + exit(1); + } + return tab->num_records; +}