Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static void RecordStartup(RavenDBPersisterSettings settings)

static long DataSize(RavenDBPersisterSettings settings)
{
var datafilePath = Path.Combine(settings.DatabasePath, "data");
var datafilePath = Path.Combine(settings.DatabasePath, "Databases", settings.DatabaseName, "Raven.voron");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The database is more than that file. One database that grows large enough can have multiple data files in it, and the Indexes directory has a directory for each index which each have their own Raven.voron file as well. For production systems those index directories will also get quite large.

Suggested change
var datafilePath = Path.Combine(settings.DatabasePath, "Databases", settings.DatabaseName, "Raven.voron");
var datafilePath = Path.Combine(settings.DatabasePath, "Databases", settings.DatabaseName);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, Voron uses a single file and I missed the bit about this being only for the Database file size, and that the Database Folder Size covered what I was thinking of.


try
{
Expand Down