The Treaty was rather favorable to the Commonwealth, but the Ottoman Emperor also gained what he wanted. There were no territorial changes; the Commonwealth-Ottoman border was confirmed to be the Dniester river, and the Commonwealth recognized Ottoman control over Moldavia. In the Commonwealth, and among the Ukrainian Cossacks, stopping of the huge Ottoman army was seen as a great victory.