tizbac / pmoxs3backuproxy

Proxy written in golang that will emulate a PBS server and work on one or more S3 buckets
GNU General Public License v3.0
64 stars 4 forks source link

dont append index during reuse, write to empty buffer #60

Closed abbbi closed 3 months ago

abbbi commented 3 months ago

after changing the fixed index buffer to use writeBinary, it was actually writing the header AND the contents of the existing index from the indexed folder to the file, thus checksums for the .idx files wont match.

use an empty buffer from the start and fill accordingly