mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Feature #2586: Optimize onedb fsck
(cherry picked from commit 492310768a15f90eb4428fcc43d3f190d53bd91f)
This commit is contained in:
parent
358a59d3a8
commit
8067c0db35
1263
src/onedb/fsck.rb
1263
src/onedb/fsck.rb
File diff suppressed because it is too large
Load Diff
@ -229,6 +229,8 @@ class OneDB
|
||||
begin
|
||||
puts " > Running fsck" if ops[:verbose]
|
||||
|
||||
time0 = Time.now
|
||||
|
||||
result = @backend.fsck
|
||||
|
||||
if !result
|
||||
@ -238,6 +240,12 @@ class OneDB
|
||||
puts " > Done" if ops[:verbose]
|
||||
puts "" if ops[:verbose]
|
||||
|
||||
time1 = Time.now
|
||||
|
||||
if LOG_TIME
|
||||
puts " > Total time: #{time1 - time0}s" if ops[:verbose]
|
||||
end
|
||||
|
||||
return 0
|
||||
rescue Exception => e
|
||||
puts e.message
|
||||
|
Loading…
x
Reference in New Issue
Block a user