Skip to content

Commit

Permalink
1.3.0 surumu
Browse files Browse the repository at this point in the history
  • Loading branch information
yusufbulentavci committed Jun 30, 2022
1 parent 054c7fa commit 4315590
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Below test1 and test2 databases should have sc1 schema and tbl1 and tbl2 tables
[general]
sqlEngine=postgresql
allTables=no
dataCompareDiskSizeLimitInMB=1024
[source]
url=jdbc:postgresql://localhost/test1
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>ozgur</groupId>
<artifactId>ozgurdbsync</artifactId>
<packaging>jar</packaging>
<version>1.2.0</version>
<version>1.3.0</version>
<name>pgdatasynctr</name>
<url>http://maven.apache.org</url>

Expand Down
4 changes: 2 additions & 2 deletions src/main/java/ozgurdbsync/Ini.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ public class Ini {

// public Integer dataCompareMaxRow=100000;

public Integer dataCompareDiskSizeTotalInMB;
public Integer dataCompareDiskSizeLimitInMB;

public Ini(String fn) throws IOException {
this.file=new IniFile(fn);
this.sqlEngine=file.getString("general", "sqlEngine", "hsqldb");
this.allTables=file.getString("general", "allTables", "no");
this.dataCompareDiskSizeTotalInMB=file.getInt("general", "dataCompareDiskSizeTotalInMB", 1024);
this.dataCompareDiskSizeLimitInMB=file.getInt("general", "dataCompareDiskSizeLimitInMB", 1024);

this.srcProps=getConnectProps("source");
this.destProps=getConnectProps("destination");
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/ozgurdbsync/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static void main(String[] args) throws IOException, SQLException {

double inMB=s.getOnDiskSize()+d.getOnDiskSize();
System.out.println("--Total disk size need:" + inMB);
if(inMB > ini.dataCompareDiskSizeTotalInMB) {
if(inMB > ini.dataCompareDiskSizeLimitInMB) {
System.out.println("--Memory need over limit ; Bypassing this table");
continue;
}
Expand Down

0 comments on commit 4315590

Please sign in to comment.