summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2018-08-19 13:31:43 +0200
committerTor Egge <Tor.Egge@broadpark.no>2018-08-19 13:32:27 +0200
commit68f3a3df925cf5b2e0796f24d88af76a7ac91bcc (patch)
tree34cfb346e57a163ce5d377075d910574b4464c57 /searchcore
parenta920b32a60463ebaabdcb3d50c2428100d97acc6 (diff)
Reduce dependency on AttributeVector::BaseName.
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp b/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp
index 0b3a6844b18..da6700739b6 100644
--- a/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp
+++ b/searchcore/src/vespa/searchcore/proton/attribute/flushableattribute.cpp
@@ -39,7 +39,7 @@ private:
search::AttributeMemorySaveTarget _saveTarget;
std::unique_ptr<search::AttributeSaver> _saver;
uint64_t _syncToken;
- search::AttributeVector::BaseName _flushFile;
+ vespalib::string _flushFile;
bool saveAttribute(); // not updating snap info.
public:
@@ -86,7 +86,7 @@ FlushableAttribute::Flusher::~Flusher()
bool
FlushableAttribute::Flusher::saveAttribute()
{
- vespalib::mkdir(_flushFile.getDirName(), false);
+ vespalib::mkdir(vespalib::dirname(_flushFile), false);
SerialNumFileHeaderContext fileHeaderContext(_fattr._fileHeaderContext,
_syncToken);
bool saveSuccess = true;
@@ -119,14 +119,14 @@ FlushableAttribute::Flusher::flush(AttributeDirectory::Writer &writer)
return false;
}
writer.markValidSnapshot(_syncToken);
- writer.setLastFlushTime(search::FileKit::getModificationTime(_flushFile.getDirName()));
+ writer.setLastFlushTime(search::FileKit::getModificationTime(vespalib::dirname(_flushFile)));
return true;
}
void
FlushableAttribute::Flusher::updateStats()
{
- _fattr._lastStats.setPath(_flushFile.getDirName());
+ _fattr._lastStats.setPath(vespalib::dirname(_flushFile));
}
bool