diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 1997-10-15 18:38:56 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 1997-10-15 18:38:56 (GMT) |
commit | d861cec6f1567cff2c729a1d803d4f4ca165b5b7 (patch) | |
tree | ddc63f37a877f4c01971bf7d8edb974179e986cb /src | |
parent | 67e4d2b5f7ce5652b59be20dcbbe90e1840b0832 (diff) | |
download | hdf5-d861cec6f1567cff2c729a1d803d4f4ca165b5b7.zip hdf5-d861cec6f1567cff2c729a1d803d4f4ca165b5b7.tar.gz hdf5-d861cec6f1567cff2c729a1d803d4f4ca165b5b7.tar.bz2 |
[svn-r121] Simplified fix for seek optimizing.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5F.c | 14 |
1 files changed, 1 insertions, 13 deletions
@@ -814,24 +814,12 @@ H5F_open (const char *name, uintn flags, } /* What is the current size of the file? */ -#ifndef LATER - /* - * Remember the current position so we can reset it. If not, the seek() - * optimization stuff gets confused. Eventually we should have a - * get_filesize() method for the various file types we'll have. - */ - { - size_t curpos = H5F_TELL (f->shared->file_handle); -#endif if (H5F_SEEKEND (f->shared->file_handle)<0) { /* Cannot determine file size */ HGOTO_ERROR (H5E_FILE, H5E_CANTINIT, NULL); } f->shared->logical_len = H5F_TELL (f->shared->file_handle); -#ifndef LATER - H5F_SEEK (f->shared->file_handle, curpos); - } -#endif + f->shared->last_op=OP_SEEK; /* change the last operation to a seek */ /* Success! */ |