diff options
Diffstat (limited to 'storage/ndb/src/kernel/blocks/ndbfs/OpenFiles.hpp')
-rw-r--r-- | storage/ndb/src/kernel/blocks/ndbfs/OpenFiles.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/ndb/src/kernel/blocks/ndbfs/OpenFiles.hpp b/storage/ndb/src/kernel/blocks/ndbfs/OpenFiles.hpp index eacda6ec77d..fa113fff151 100644 --- a/storage/ndb/src/kernel/blocks/ndbfs/OpenFiles.hpp +++ b/storage/ndb/src/kernel/blocks/ndbfs/OpenFiles.hpp @@ -25,7 +25,7 @@ public: OpenFiles(){ } /* Get a pointer to the file with id */ - AsyncFile* find(Uint16 id); + AsyncFile* find(Uint16 id) const; /* Insert file with id */ bool insert(AsyncFile* file, Uint16 id); /* Erase file with id */ @@ -52,7 +52,7 @@ private: //***************************************************************************** -inline AsyncFile* OpenFiles::find(Uint16 id){ +inline AsyncFile* OpenFiles::find(Uint16 id) const { for (unsigned i = 0; i < m_files.size(); i++){ if (m_files[i].m_id == id){ return m_files[i].m_file; |