# Version Bump ztsd

**URL:** <https://discuss.dgraph.io/t/version-bump-ztsd/13049>\
**Category:** Badger\
**Tags:** status:accepted, kind:bug, ticket:created\
**Created:** [March 3, 2021, 8:32pm UTC](https://discuss.dgraph.io/t/version-bump-ztsd/13049 "2021-03-03T20:32:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaquin](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/joaquin/32/2619_2.png) [@joaquin](https://discuss.dgraph.io/u/joaquin)\
**Post date:** [March 3, 2021, 8:32pm UTC](https://discuss.dgraph.io/t/version-bump-ztsd/13049/1 "2021-03-03T20:32:53Z")

</div>

The ztsd needs to be version bumped, to be consistent with dgraph, and more specifically use the patched version [v1.4.5+patch2](https://github.com/DataDog/zstd/tree/v1.4.5%2Bpatch2) in both badger and dgraph.

> The semantic versioning of this release is a bit particular since it only includes changes in the Go wrapper without any changes from the upstream C repository ([https://github.com/facebook/zstd/releases](https://github.com/facebook/zstd/releases)).
> 
> Changes:
> 
> - Pass pointers to C as unsafe.Pointer, not uintptr (memory corruption) [@evanj](https://github.com/evanj) ([#91](https://github.com/DataDog/zstd/pull/91))
> - Add go.mod file [@Viq111](https://github.com/Viq111) ([#94](https://github.com/DataDog/zstd/pull/94))
> - [circleci] Fix 32 bits builds [@Viq111](https://github.com/Viq111) ([#92](https://github.com/DataDog/zstd/pull/92))
> 
> This is a recommended version as it fixes a potential memory corruption bug when the system is under-pressure (memory and/or lots of threads) which forces the Go runtime to move the stack around.

### What version of Go are you using (`go version`)?

- **`go version go1.16 linux/amd64`**

### What operating system are you using?

- **`Ubuntu 20.04.2 LTS`**

### What version of Badger are you using?

- **`6c35ad6c28e0` (referenced from dgraph `go.mod`)**

### Does this issue reproduce with the latest master?

yes

### Steps to Reproduce the issue

```auto
grep ztsd go.mod

```

### What Badger options were set?

n/a - set in dgraph

### What did you do?

n/a - compile badger

### What did you expect to see?

updated patched version of ztsd

### What did you see instead?

older version of ztsd
