summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1997-10-15 18:38:56 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1997-10-15 18:38:56 (GMT)
commitd861cec6f1567cff2c729a1d803d4f4ca165b5b7 (patch)
treeddc63f37a877f4c01971bf7d8edb974179e986cb
parent67e4d2b5f7ce5652b59be20dcbbe90e1840b0832 (diff)
downloadhdf5-d861cec6f1567cff2c729a1d803d4f4ca165b5b7.zip
hdf5-d861cec6f1567cff2c729a1d803d4f4ca165b5b7.tar.gz
hdf5-d861cec6f1567cff2c729a1d803d4f4ca165b5b7.tar.bz2
[svn-r121] Simplified fix for seek optimizing.
-rw-r--r--src/H5F.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/H5F.c b/src/H5F.c
index eccb1ef..6cba7d0 100644
--- a/src/H5F.c
+++ b/src/H5F.c
@@ -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! */