diff options
author | Tor Brede Vekterli <vekterli@yahoo-inc.com> | 2017-03-13 15:36:21 +0000 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@yahoo-inc.com> | 2017-03-13 15:41:37 +0000 |
commit | e38a4ead43e67ffacd7f48f81034677af1faa516 (patch) | |
tree | 97d05c7bd6dcef168f9d869f2668c0c9c470cca3 /storage | |
parent | 87a690d57ec8d43df5bdb44c6bd096791d9333ec (diff) |
Don't return stringref to temporary buffer
This line was last changed in 2011 so, uh, it's been buggy for a while.
Presumably this has been aggressively inlined, so going via the stringref
hasn't actually happened during normal compilation.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/src/vespa/storage/visiting/visitorthread.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/vespa/storage/visiting/visitorthread.cpp b/storage/src/vespa/storage/visiting/visitorthread.cpp index 48ff14d9dec..4b96faee14b 100644 --- a/storage/src/vespa/storage/visiting/visitorthread.cpp +++ b/storage/src/vespa/storage/visiting/visitorthread.cpp @@ -65,7 +65,7 @@ VisitorThread::Event::Event( } namespace { - vespalib::stringref getThreadName(uint32_t i) { + vespalib::string getThreadName(uint32_t i) { vespalib::asciistream name; name << "Visitor thread " << i; return name.str(); |