Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sstable: use package-level error in place of runtime allocation
Currently, `sstable.(*Writer).Close`, calls `errors.New` on the happy path when finalizing an sstable. While this call is relatively inexpensive and infrequent, it is unnecessary. Extract out error definition into a package-level variable that can be referenced throughout the course of the program's runtime.
- Loading branch information