Skip to content
This repository was archived by the owner on Jan 6, 2020. It is now read-only.
Merged
Changes from all commits
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
4 changes: 2 additions & 2 deletions src/maidsafe/routing/bootstrap_file_operations.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ boost::filesystem::path DoGetBootstrapFilePath(bool is_client,
void WriteBootstrapContacts(const BootstrapContacts& bootstrap_contacts,
const fs::path& bootstrap_file_path) {
sqlite::Database database(bootstrap_file_path, sqlite::Mode::kReadWriteCreate);
sqlite::Tranasction transaction(database);
sqlite::Transaction transaction(database);
PrepareBootstrapTable(database);
InsertBootstrapContacts(database, bootstrap_contacts);
transaction.Commit();
Expand All @@ -136,7 +136,7 @@ BootstrapContacts ReadBootstrapContacts(const fs::path& bootstrap_file_path) {
void InsertOrUpdateBootstrapContact(const BootstrapContact& bootstrap_contact,
const boost::filesystem::path& bootstrap_file_path) {
sqlite::Database database(bootstrap_file_path, sqlite::Mode::kReadWriteCreate);
sqlite::Tranasction transaction(database);
sqlite::Transaction transaction(database);
PrepareBootstrapTable(database);
InsertBootstrapContacts(database, BootstrapContacts(1, bootstrap_contact));
transaction.Commit();
Expand Down