sapling/fastmanifest/checksum.h
Tony Tung e231b3320d [fastmanifest] fix the checksum update mechanism
Summary: Incremented the wrong value.  Caught this when running a unit test to update the checksum of an empty tree.

Test Plan: passes unit test now.

Reviewers: lcharignon

Reviewed By: lcharignon

Subscribers: mitrandir, mjpieters, #sourcecontrol

Differential Revision: https://phabricator.fb.com/D3140684

Tasks: 10697482

Signature: t1:3140684:1459903366:be1b970281e0df91b2a62e7fac2c1d417a8be221
2016-04-18 11:34:01 -07:00

16 lines
408 B
C

// Copyright 2016-present Facebook. All Rights Reserved.
//
// checksum.h: declarations for recalculating the checksums for intermediate
// nodes in a tree. this is for internal use only.
//
// no-check-code
#ifndef __FASTMANIFEST_CHECKSUM_H__
#define __FASTMANIFEST_CHECKSUM_H__
#include "tree.h"
extern void update_checksums(tree_t *tree);
#endif /* #ifndef __FASTMANIFEST_CHECKSUM_H__ */