westerndigitalcorporation / zenfs

ZenFS is a storage backend for RocksDB that enables support for ZNS SSDs and SMR HDDs.
GNU General Public License v2.0
238 stars 87 forks source link

Backport `util: Fix occurances where back() might be called on an empty string` #232

Closed MaisenbacherD closed 1 year ago

MaisenbacherD commented 1 year ago

Replace the pattern where back() might be called on an empty string with the AddDirSeparatorAtEnd fuction which was fixed in a previours commit:

util: Fix AddDirSeparatorAtEnd where back() can not be called on an empty string

Signed-off-by: Dennis Maisenbacher dennis.maisenbacher@wdc.com