Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[add-snapshot] Add snapshot mechanism to enhanced PathOram #1

Draft
wants to merge 5 commits into
base: nachiket-v2
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
New files to enable generating and testing snapshot
  • Loading branch information
nachiketsrao committed Nov 22, 2024
commit ef887d56c594c766a65d21173ce74902d45ee41c
Binary file added pathOram/dump.rdb
Binary file not shown.
29 changes: 29 additions & 0 deletions pathOram/generate_sb_snapshot.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash

# Check if a flag is provided
if [ -z "$1" ]; then
echo "Usage: $0 {gen|test}"
exit 1
fi

# Run based on the flag provided
if [ "$1" == "gen" ]; then
echo "Generating db snapshot..."
go run ./tests/generate_db_snapshot.go
if [ $? -ne 0 ]; then
echo "Generating db snapshot failed."
exit 1
fi
elif [ "$1" == "test" ]; then
echo "Testing db snapshot..."
go run ./tests/test_db_snapshot.go
if [ $? -ne 0 ]; then
echo "Testing db snapshot failed."
exit 1
fi
else
echo "Invalid flag. Use 'gen' for generate or 'test' for test."
exit 1
fi

echo "Execution completed successfully."
Loading