Bug #44936 ndb_restore - printout of --progress-frequency is not complete
| Submitted: | 18 May 2009 16:35 | Modified: | 21 May 2009 7:52 |
|---|---|---|---|
| Reporter: | Johan Andersson | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S4 (Feature request) |
| Version: | mysql-5.1-telco-7.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | -6.2), (-6.3, ndb_restore | ||
[18 May 2009 16:35]
Johan Andersson
[23 Jan 2010 8:32]
Andrew Hutchings
This should already exist if the file size is obtainable:
static void report_progress(const char *prefix, const BackupFile &f)
{
info.setLevel(255);
if (f.get_file_size())
info << prefix << (f.get_file_pos() * 100 + f.get_file_size()-1) / f.get_file_size()
<< "%(" << f.get_file_pos() << " bytes)\n";
else
info << prefix << f.get_file_pos() << " bytes\n";
}
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.